MPA 5830 - Module 04 Exercises

Ani Ruhil

2018-08-02


Practice Tasks

Lord of the Rings trilogy data

Use the Lord of the Rings data emailed to you to answer the following questions. Note that these data are from jennybc and represent the number of words spoken by characters in the LOTR trilogy. Some other, pretty amazing visualizations can be seen here, the work of Nadieh Bremer. You are merely looking at how many times a particular race or character appears on screen with a dialogue of at least one word.

  1. Generate an appropriate chart that shows the distribution of Race

  1. Now break this distribution out by Film to see how Race is distributed across Film.

alternatively, you could do this:

  1. Now generate an appropriate chart to show the distribution of Character by film. Use coord_flip() to flip the coordinates so that the characters show up on the y-axis.

  1. Now use facet_wrap() to generate the three-panel layout, one panel per film.

  1. Use an appropriate chart to plot the distribution of the number of words spoken overall

  1. Now break up this chart by movie.

  1. What if you did it by Race? Which race seems to speak the most?